Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication for Regular User's #127

Merged
merged 2 commits into from
Nov 9, 2024
Merged

Conversation

rishabh7923
Copy link
Contributor

What changes I made?

  • Added a variable in the environment file to specify the admin username. Only users with this specified username can perform admin actions.
    image

  • Moved the login and registration pages out of the admin directory, as these are now accessible to all users, including non-admins.

  • Introduced a new middleware to verify if the user has admin privileges.

  • Restricted certain features based on user roles. Tasks like creating posts, editing posts, and accessing the dashboard are hidden from non-admin users.

Preview

2024-11-09.20-22-32.mp4

@rishabh7923
Copy link
Contributor Author

I don't think it was level 2 work 😅

@sudo-dpkg sudo-dpkg added level3 and removed level2 labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants